//
//  WYJComposeButton.swift
//  MySinaWeibo
//
//  Created by eastriver on 17/4/3.
//  Copyright © 2017年 believewilliam. All rights reserved.
//

import UIKit
let btnW: CGFloat = 80
let btnH: CGFloat = 110
class WYJComposeTypeButton: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setTitleColor(UIColor.darkGray, for: .normal)
        titleLabel?.textAlignment = .center
        titleLabel?.font = UIFont.systemFont(ofSize: 15)
    }
    
    override func titleRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: btnW, width: btnW, height: btnH - btnW)
    }
    
    override func imageRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: 0, width: btnW, height: btnW)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    

}
